home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Very Best of Atari Inside
/
The Very Best of Atari Inside 1.iso
/
mint
/
mntlib25
/
alphasor.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-09-05
|
299b
|
17 lines
/*
** ALPHASORT
** Trivial sorting predicate for scandir; puts entries in alphabetical order.
*/
#include <types.h>
#include <dirent.h>
#include <string.h>
int
alphasort(d1, d2)
struct dirent **d1;
struct dirent **d2;
{
return strcmp(d1[0]->d_name, d2[0]->d_name);
}